package com.example.module_maintenance.api

import com.bw.lib_common.api.BaseApiServer
import com.bw.lib_common.entity.BaseResponse
import com.example.module_maintenance.entity.VisitorEntity
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface MaintenanceApiService :BaseApiServer {
    @GET("/api/visit-appointments")
    suspend fun getVisitors() : BaseResponse<List<VisitorEntity>>

    @POST("/api/visit-appointments")
    suspend fun addVisitors(@Body body: VisitorEntity):BaseResponse<VisitorEntity>


}